package com.gemalto.Kryptik.Gui;


import javax.swing.*;
import com.gemalto.Kryptik.Algo.*;

public class Indicator extends JLabel {

	private String text;

	public Indicator(AlgoManager a){
		super();
		
		setBorder(new javax.swing.border.EtchedBorder());
		setForeground((java.awt.Color) javax.swing.UIManager.getDefaults ().get ("CheckBoxMenuItem.acceleratorForeground"));
          	setFont(new java.awt.Font ("Dialog", 0, 11));
		setHorizontalAlignment(CENTER);

          	setMaximumSize(new java.awt.Dimension(34, 20));
          	setPreferredSize(new java.awt.Dimension(34, 20));
          	setMinimumSize(new java.awt.Dimension(34, 20));

		a.registerIndicator(this);
	}


	public void setAlgoName(String s){
		text = s;
		setText(s);
	}

}
